package io2;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FOSDemo {
    public static void main(String[] args) throws IOException {
       /* FileOutputStream fos=new FileOutputStream("fos1.dat");
        fos.write(1);
        fos.write(2);
        System.out.println("OK");
        fos.close();*/

        FileOutputStream fos=new FileOutputStream("fos2.dat");
        fos.write(11);
        fos.write(22);
        System.out.println("OK");
        fos.close();
    }
}
